package com.qingk.easyjava;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.qingk.easyjava.datasource.BeanDao;

public class App {

	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml", "mybean.xml");
		BeanDao bd = ac.getBean("beanDao", BeanDao.class);
		System.out.println(bd.getName());
	}

}
